package com.example.josephu;

/**
 * @Author: wanqian
 * @Date: 2021/1/26 14:04
 */
public class LinkedNode {

    private int id;

    private LinkedNode next;

    public LinkedNode(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public LinkedNode getNext() {
        return next;
    }

    public void setNext(LinkedNode next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "LinkedNode{" +
                "id=" + id +
                '}';
    }
}
